home *** CD-ROM | disk | FTP | other *** search
- #include "bbs.h"
-
-
- void SetProtocol(char *str)
- {
- // int status;
-
- /* added this till we add protocols (RTS) */
- User.Protocol = 'Z';
- return;
- #ifdef RTS_NOPROTOCOLS
- if(str[0]=='\0')
- {
- ListProtocols();
- }
- for(;;)
- {
- if(str[0]=='\0')
- {
- sprintf(str,"\r\nProtocol: (Enter)= %c? ",User.Protocol);
- AEPutStr(str);
- str[0]='\0';
- status=LineInput("",str,1,KEYBOARD_TIMEOUT);
- if(status<0) { return; }
- }
- if(strlen(str)!=0)
- {
- strupr(str);
- switch(str[0])
- {
- case 'Z':
- // case 'X':
- AEPutStr("\r\n");
- User.Protocol=(UBYTE)str[0];
- return;
- break;
- default:
- str[0]='\0';
- AEPutStr("\r\nInvalid protocol select another\r\n");
- ListProtocols();
- break;
- }
- }
- else
- {
- return;
- }
- }
- #endif
- }
-
-